# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-microphone-plugin-alsa
pkgver=0.0.0
pkgrel=0
pkgdesc="OpenVoiceOS Microphone plugin"
url="https://github.com/OpenVoiceOS/ovos-microphone-plugin-alsa"
arch="noarch"
license="Apache-2.0"
depends="
	py3-ovos-plugin-manager
	py3-pyalsaaudio
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-microphone-plugin-alsa/archive/refs/tags/V$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/ovos-microphone-plugin-alsa-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
a70124794bdf16b6aae84a47e7c454c7670f01679e48d58bb3796434de3f2c07222ce69880de21c3ede691c886a9aa1b7403580fa42bced263b5bcafd45ed3c3  py3-ovos-microphone-plugin-alsa-0.0.0.tar.gz
"
